package cn.tedu.kcircle.comment.front.infra.repository.converter;

import cn.tedu.kcircle.comment.dao.entity.CommentDO;
import cn.tedu.kcircle.comment.front.protocol.param.CommentAddParam;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

@Component
public class CommentConverter {
    public CommentDO param2DO(CommentAddParam param){
        CommentDO commentDO = new CommentDO();
        BeanUtils.copyProperties(param,commentDO);
        return commentDO;
    }
}
